package com.tarry.controller;

import com.tarry.demo.api.HelloApi;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Reference
    HelloApi helloApi;

    @RequestMapping("hello")
    public String hello(String name){
        return helloApi.sayHello(name);
    }
}
